package com.springcloud.stream.demo.consumer;

import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Author: JXM
 * @Date: 2024-6-17 23:02
 */
@Component
public class MessageReceiver {

    @StreamListener(Sink.INPUT)
    public void process(Object message){
        System.out.println("MessageReceiver======>" + message);
    }
}
